package com.ccb.jyzx.expand.tiantouonline.controller;

import com.ccb.jyzx.expand.tiantouonline.bean.vo.ClassifyVo;
import com.ccb.jyzx.expand.tiantouonline.service.ClassifyService;
import com.ccb.jyzx.expand.tiantouonline.view.result.Result;
import com.ccb.jyzx.expand.tiantouonline.view.result.ResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ProjectName: extend
 * @Author: jianghaolin
 * @Version: 1.0
 */
@Controller
@RequestMapping("/tto/classify")
@Api(tags = "级联操作相关接口")
public class ClassifyController extends BaseController {

    @Autowired
    private ClassifyService classifyService;

    @ResponseBody
    @PostMapping(value = "cascade",consumes = "application/json;charset=UTF-8")
    @ApiOperation(value = "级联查询", notes = "级联查询")
    private Result findCascade(){
        ClassifyVo vo = classifyService.findCascade();
        return ResultUtil.success(vo);
    }
}
